﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="MetroLightKit.Sample.UserControl1"
	d:DesignWidth="640" d:DesignHeight="480">

	<Grid x:Name="LayoutRoot">
		            
                    <Grid>
            <StackPanel x:Name="stackContainer" Orientation="Vertical"
                        HorizontalAlignment="Center" Background="Transparent">
                <Viewbox Width="100" Height="100" x:Name="viewButton">
                    <Viewbox.Projection>
                        <PlaneProjection />
                    </Viewbox.Projection>
                    <Grid x:Name="grid2Button" Height="100" Width="100" 
                      Clip="M100,50 C100,77.614235 77.614235,100 50,100 C22.385763,100 0,77.614235 0,50 C0,22.385763 22.385763,0 50,0 C77.614235,0 100,22.385763 100,50 z">
                        <Ellipse Height="100" Width="100" Stroke="Red"
                           StrokeThickness="4" x:Name="elipseButton" />
                        <Grid RenderTransformOrigin="0.5,0.5" Margin="7,-11,-3,-17" >
                        	<Grid.RenderTransform>
                        		<CompositeTransform ScaleX="0.9" ScaleY="0.6"/>
                        	</Grid.RenderTransform>
                            
                            <Polygon Fill="Red" Points="27.87,99.958 35.777,58.031 29.824,58.031 22.94,94.101 12.69,94.101 5.907,58.031 0,58.031 7.713,99.958   27.87,99.958 " FillRule="NonZero" />
                            <Path Fill="Red" Data="M54.567 16.595c4.581 0.002 8.301-3.717 8.298-8.3C62.868 3.705 59.148-0.01 54.567 0c-4.589-0.01-8.309 3.705-8.297 8.295  C46.259 12.878 49.979 16.597 54.567 16.595L54.567 16.595z" />
                            <Path Fill="Red" Data="M43.879 31.871l0.05 63.402c0.016 6.328 9.343 6.271 9.321-0.147l0.049-36.896h1.806v36.849  c-0.02 6.449 9.416 6.611 9.422 0.195V31.577h1.659v22.746c-0.021 5.467 7.385 5.467 7.368 0.098V29.577  c0.017-6.706-4.959-10.643-10.2-10.64H48.565c-3.504-0.002-6.046 1.384-8.2 4.442l-7.469 10.884H19.963  c-5.23-0.001-4.939 7.389-0.097 7.371h14.935c1.162 0.018 2.585-0.417 3.417-1.661L43.879 31.871L43.879 31.871z" />
                            <Polygon Fill="Red" Points="19.524,70.721 19.524,64.671 13.471,64.671 13.471,70.721 19.524,70.721 " FillRule="NonZero" />
                            <Path Fill="Red" Data="M16.498 67.695" />
                            <Polygon Fill="Red" Points="22.842,57.249 18.401,52.858 13.959,57.249 18.401,61.692 22.842,57.249 " FillRule="NonZero" />
                            <Path Fill="Red" Data="M18.401 57.249" />
                            <Polygon Fill="Red" Points="18.695,48.904 14.252,44.513 9.859,48.904 14.252,53.346 18.695,48.904 " FillRule="NonZero" />
                            <Path Fill="Red" Data="M14.252 48.904" />
                        </Grid>
                    </Grid>
                </Viewbox>
                <!--<ContentPresenter Projection="{Binding Path=Projection, ElementName=viewButton}"  x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="{TemplateBinding ContentMargin}"/>-->
                <TextBlock x:Name="contentPresenter" Foreground="Red"
                         Text="Texte" HorizontalAlignment="Center" VerticalAlignment="Center"
                         Margin="10">
                <TextBlock.Projection>
                  <PlaneProjection />
                </TextBlock.Projection>
                <TextBlock.RenderTransform>
                  <CompositeTransform />
                </TextBlock.RenderTransform>
                </TextBlock>
            </StackPanel>
            <Rectangle x:Name="DisabledVisualElement" Fill="#FFFFFFFF" IsHitTestVisible="false" Opacity="0" RadiusY="3"
                       RadiusX="3" />
            <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" RadiusY="2"
                       RadiusX="2" />
        </Grid>
    </Grid>
</UserControl>